<template>
	<view class="regulation">
		<custom-navi :show-home="false">规则中心</custom-navi>
		<view class="rule">
			<view class="rule-list">
				<view v-for="(item,index) in formData" :key='index' @click="handlePopRule(item)" class="list">
					<view class="text">
						<view class="txt">
							{{item.txt}}
						</view>
						<view class="time">
							{{item.time}}
						</view>
					</view>
					<view class="img text">
						<image src="../../../../../static/little-more.png" mode=""></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				formData:[
					{txt:'餐饮安全管理规范',src:'',url: '/src/pages/my/pages/regulation/safety/index',time:'2019年12月19日'},
					{txt:'到店餐饮商户不接待管理办法',src:'',url: '/src/pages/my/pages/regulation/reception/index',time:'2019年12月19日'},
					{txt:'到店餐饮商户管理制度',src:'',url: '/src/pages/my/pages/regulation/commercial/index',time:'2019年12月19日'},
					{txt:'到店餐饮商户逃单管理办法',src:'',url: '/src/pages/my/pages/regulation/escape/index',time:'2019年12月19日'},
					{txt:'到店餐饮商户信息发布规范',src:'',url: '/src/pages/my/pages/regulation/releaseInfo/index',time:'2019年12月19日'},
					{txt:'到店类商户虚假购买管理办法',src:'',url: '/src/pages/my/pages/regulation/sham/index',time:'2019年12月19日'},
					{txt:'商户流量炒作行为管理办法',src:'',url: '/src/pages/my/pages/regulation/hype/index',time:'2019年12月19日'},
				],

			}
		},
		methods:{
			handlePopRule(res){
				uni.navigateTo({
				  url: res.url
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.rule{
		&-list{
			.list{
				
				padding: 20rpx 32rpx;
				border-bottom: 1rpx solid rgba(217,217,217,1);
				background: rgba(255,255,255,1);
				display: flex;
				align-items: center;
			}
			.text{
				// display: inline-block;
				flex: 20;
				.txt{
					font-size:28rpx;
					font-family:PingFang SC;
					font-weight:bold;
					color:rgba(80,80,80,1);
				}
				.time{
					font-size: 10rpx;
					color:rgba(128,128,128,1);
					font-family:PingFang SC;
				}
			}
			.img{
				float: right;
				width:18rpx;
				height:20rpx;
				flex: 1;
				image{
					// width: 100%;
					// height: 100%;
					width:18rpx;
					height:20rpx;
				}
			}
		}
	}
</style>
